SPICE_LOCAL_PATH := $(call my-dir)
SPICE_LIBRARIES := libdev-spice libhlp-spice libckt-spice \
	libfte-spice libcp-spice libinp-spice libmfb-spice libmisc-spice \
	libni-spice libsparse-spice

include $(SPICE_LOCAL_PATH)/lib/Android.mk

include $(CLEAR_VARS)
LOCAL_PATH := $(SPICE_LOCAL_PATH)
LOCAL_MODULE := spice
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/lib/dev/
#NDK_MODULE_PATH := $(LOCAL_PATH)
LOCAL_CFLAGS := -DSIMULATOR
LOCAL_LDLIBS := -llog
LOCAL_LDFLAGS := --start-group $(LOCAL_PATH)/lib/dev.a \
	$(LOCAL_PATH)/lib/hlp.a $(LOCAL_PATH)/lib/ckt.a \
	$(LOCAL_PATH)/lib/fte.a $(LOCAL_PATH)/lib/cp.a \
	$(LOCAL_PATH)/lib/inp.a $(LOCAL_PATH)/lib/mfb.a \
	$(LOCAL_PATH)/lib/ni.a $(LOCAL_PATH)/lib/misc.a \
	$(LOCAL_PATH)/lib/sparse.a \
	--end-group
LOCAL_SRC_FILES := spice.c conf.c tunepc.c
LOCAL_STATIC_LIBRARIES := $(SPICE_LIBRARIES)
include $(BUILD_SHARED_LIBRARY)
